<?php
/** .-------------------------------------------------------------------
 * |      Site: www.hdcms.com  www.houdunren.com
 * |      Date: 2018/7/2 上午12:54
 * |    Author: 向军大叔 <2300071698@qq.com>
 * '-------------------------------------------------------------------*/
/**
 * 后台菜单配置
 * 下面是属性说明：
 * title 菜单栏目
 * icon 图标参考 http://fontawesome.dashgame.com/
 * menus 子菜单
 * permission 权限标识，必须在permission.php配置文件中存在
 */
return [
    [
        "title"      => "商品管理",
        "icon"       => "fa fa-navicon",
        'permission' => [
            'Modules\Goods\Http\Controllers\FenleiController@index',
            'Modules\Goods\Http\Controllers\FenleiController@create',
            'Modules\Goods\Http\Controllers\FenleiController@edit',
            'Modules\Goods\Http\Controllers\FenleiController@destroy',
            'Modules\Goods\Http\Controllers\AttrsController@index',
            'Modules\Goods\Http\Controllers\AttrsController@create',
            'Modules\Goods\Http\Controllers\AttrsController@edit',
            'Modules\Goods\Http\Controllers\AttrsController@destroy',
        ],
        "menus"      => [
            ["title" => "商品分类", "permission" => "Modules\Goods\Http\Controllers\FenleiController@index", "url" => "fenlei.index"],
            ["title" => "商品属性", "permission" => "Modules\Goods\Http\Controllers\AttrsController@index", "url" => "attrs.index"],
            ["title" => "商品操作", "permission" => "Modules\Goods\Http\Controllers\GoodsController@index", "url" => "goods.index"],
//            ["title" => "货品操作", "permission" => "Modules\Goods\Http\Controllers\ShopsController@index", "url" => "/shop/{gid}"],
        ],


    ],
];
